from django.contrib.syndication.feeds import Feed
from django.utils.feedgenerator import Atom1Feed
from com.jumang.model.note import note

class LatestEntries(Feed):
    title = u'skyline\'s workspace'
    link = '/'
    description = u'skyline\'s workspace'

    def items(self):
        return note.all().filter("isPublic", True).order('-createTime').fetch(7)

##class AtomSiteNewsFeed(LatestEntries):
##    feed_type = Atom1Feed
